<!DOCTYPE html>
<html>
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>乡土味士 - 后台管理中心 - 线下扫码提现</title>
    <link rel="shortcut icon" href="favicon.ico"> <link href="__PUBLIC__/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

    <!-- Data Tables -->
    <link href="__PUBLIC__/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">

    <link href="__PUBLIC__/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/style.min862f.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <?php $total = $wxpay_total+$alipay_total; ?>
            <div class="ibox-title" style="min-height: 85px;margin-bottom: 15px;">
                <h5 style="width: 100%;padding: 3px;">店铺名称：{$m_info.storename}，店主：{$m_info.realname}（{$m_info.nickname}）</h5>
                <h5 style="width: 100%;padding: 3px;">
                    店主余额：￥{$m_info.credit3}
                    ，当日收款总金额：￥{$total}
                    <if condition="$is_tx gt 0">
                        &nbsp;，已提现金额：￥{$wx_total_fee+$ali_total_fee}
                        <else />
                        &nbsp;，
                        可提现金额：￥{$wx_total_fee+$ali_total_fee}
                    </if>

                    <if condition="($total egt 0) AND ($is_tx EQ '')">
                        &nbsp; &nbsp; &nbsp;<button type="button" class="btn btn-primary btn-mid withdraw_btn" data-date="{$date}" data-id="{$m_info.id}" data-credit="{$total}">可提现</button>
                    </if>
                </h5>
            </div>

            <div class="ibox-content" style="margin-bottom: 20px;">
                <p>当日微信收款总金额：￥{$wxpay_total}</p>
                <p>通道费(总金额*0.003)：￥{$wxpay_fee}</p>
                <p>积分费(总金额*0.007)：￥{$integral_fee}</p>
                <p>微信手续费(总金额*0.006)：￥{$service_fee}</p>
                <p>可提现金额(微信收款总金额-通道费-积分费)：￥{$wx_total_fee}</p>
                <div class="ibox-title">
                    <h5>{$date}微信收款明细表</h5>
                </div>
                <table class="table table-striped table-bordered table-hover dataTables-example">
                    <thead>
                    <tr>
                        <th>序号</th>
                        <th>支付金额</th>
                        <th>通道费</th>
                        <th>支付时间</th>
                        <!--<th>操作</th>-->
                    </tr>
                    </thead>
                    <tbody>
                        <volist name="wxpay_list" id="vo"> <!--一级栏目循环开始-->
                            <tr class="gradeX">
                                <td>{$vo.id}</td>
                                <td>￥{$vo.amount}</td>
                                <td>￥{$vo.sx_fee}</td>
                                <td>{$vo['updated_at']|date="Y-m-d H:i",###}</td>
                            </tr>
                        </volist>
                    </tbody>
                    <tfoot>
                        <tr>
                            <th>总计</th>
                            <td>￥{$wxpay_total}</td>
                            <td>￥{$wxpay_fee}</td>
                            <th>总计</th>
                        </tr>
                    </tfoot>
                </table>

            </div>

            <div class="ibox-content" >
                <p>当日支付宝收款总金额：￥{$alipay_total}</p>
                <p>通道费(支付宝收款总金额*0.003)：￥{$alipay_fee}</p>
                <p>可提现金额(支付宝收款总金额-通道费)：￥{$ali_total_fee}</p>
                <div class="ibox-title">
                    <h5>{$date}支付宝收款明细表</h5>
                </div>
                <table class="table table-striped table-bordered table-hover dataTables-example">
                    <thead>
                    <tr>
                        <th>序号</th>
                        <th>支付金额</th>
                        <th>通道费</th>
                        <th>支付时间</th>
                    </tr>
                    </thead>
                    <tbody>
                        <volist name="alipay_list" id="vo">
                            <tr class="gradeX">
                                <td>{$vo.id}</td>
                                <td>￥{$vo.amount}</td>
                                <td>￥{$vo.sx_fee}</td>
                                <td>{$vo['updated_at']|date="Y-m-d H:i",###}</td>
                            </tr>
                        </volist>
                    </tbody>
                    <tfoot>
                        <tr>
                            <th>总计</th>
                            <td>￥{$alipay_total}</td>
                            <td>￥{$alipay_fee}</td>
                            <th>总计</th>
                        </tr>
                    </tfoot>
                </table>


            </div>
        </div>
    </div>
</div>
</div>

<script src="__PUBLIC__/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/js/bootstrap.min.js?v=3.3.6"></script>
<script src="__PUBLIC__/js/layer/layer.js"></script>

<style type="text/css">
    .footer{
        text-align: center;
    }
    .footer a{
        width: 58px;
        height: 20px;
        display: inline-block;
        border: 1px solid #d2d2d2;
        margin-left: 2px;
    }
    .footer span{
        width: 58px;
        height: 20px;
        display: inline-block;
        margin-left: 2px;
    }
    .footer .current{
        background-color: #f4f4f4;
        border: 1px solid #d2d2d2;
    }
</style>

<script>
    //提现
    $(".withdraw_btn").click(function () {
        var u_id = $(this).attr('data-id');
        var credit3 = $(this).attr('data-credit');
        var date = $(this).attr('data-date');
        var i = layer.load();
        var this_a = $(this);
        // console.log(date);
        this_a.removeClass("withdraw_btn");
        if(credit3 > 0){
            $.post('/XtwsBack/WithDraw/changeCredit3',{u_id:u_id,credit3:credit3,date:date},function(e){
                console.log(e)
                layer.close(i);
                if(e.status==1){
                    this_a.html("已提现");
                    this_a.removeClass("btn-primary");
                }else{
                    layer.msg(e.msg,{icon:2});
                }
            });
        }else{
            layer.msg('已提现');
            layer.close(i);
        }

    })

</script>

</body>


<!-- Mirrored from /theme/hplus/table_jqgrid.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:02 GMT -->
</html>
